import request from '@u/request'

// 首页banner轮播
const getHomeBanner = (params = {}) => {
    return request.get('/banner/list', { params })
}
// 首页宫格分类
const getCates = (params = {}) => {
    return request.get('/shop/goods/category/all', { params })
}
// 商品列表
const postItems = (params = {}) => {
    return request.post('/shop/goods/list/v2', params)
}
// 商品详情
const getItemDetail = (params = {}) => {
    return request.get('/shop/goods/detail', {params})
}



export {
    getHomeBanner,
    getCates,
    postItems,
    getItemDetail
}